<%--
    Document   : welcome
    Created on : Nov 17, 2012, 14:21:37 PM
    Author     : HoangTN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Welcome Page</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

        <link href="<%= request.getContextPath()%>/styles/layout.css" rel="stylesheet"
              type="text/css" media="screen" />
    </head>
    <body id="top">

        <c:if test="${empty sessionScope.USER}">
            <% response.sendRedirect(request.getContextPath() + "/index.jsp");%>
        </c:if>

        <div class="wrapper col1">
            <div id="header">
                <div id="logo">
                    <h1><a href="<%=request.getContextPath()%>/welcome.jsp">BusinessToday</a></h1>
                    <p><strong>Free CSS Website Template</strong></p>
                </div>
                <div id="newsletter">
                    <p><i>Welcome, ${sessionScope.ROLE}
                            <font color="red" size="4">
                                <strong> ${sessionScope.USER}</strong>
                            </font></i>
                    </p>
                    <p align="right"><a href="<%= request.getContextPath()%>/LogoutController">Log out</a> </p>
                </div>
                <br class="clear" />
            </div>
        </div>

        <%@include file="/jsp/common/menu_field.jsp" %>

        <div class="wrapper col5" style="height: 250px"></div>


        <%@include file="/jsp/common/footer_field.jsp" %>
        <%@include file="/jsp/common/copyright_field.jsp" %>

    </body>
</html>